/**
 ************************************* Copyright ******************************
 * FileName   : debug.h
 * Version    : v1.0
 * Author     : yyc
 * Date       : 2021-04-14
 * Description:
 * Function List:
 1. ....
 <version>:
 <modify staff>:
 <data>:
 <description>:
 2. ...
 ******************************************************************************
 */

#ifndef __DEBUG_H_
#define __DEBUG_H_
#include "stm32f4xx_hal.h"

#define RX_LEN3 1
typedef struct {
	uint32_t RX_Size;          //receive length
	uint8_t RX_pData[RX_LEN3]; //DMA receive buffer
} USART3_RECEIVETYPE;
extern USART3_RECEIVETYPE UsartType3;
void
UART_RxIdleCallback3(UART_HandleTypeDef *huart);

uint8_t
sbus_Ceartframe(uint8_t *fsh_flag, uint8_t *data);
uint8_t
sbus_Analysis(uint8_t *data, uint16_t cnt, uint16_t *ch);
uint8_t
sbus_ch2pwm(uint16_t *ch, uint16_t *pwm_val);
#endif

